package com.sx.pipeline.app.model

import com.sx.pipeline.repos.AppRepos
import com.sx.pipeline.repos.http.HttpSourceImpl
import com.sx.pipeline.repos.http.IHttpSource
import com.sx.pipeline.repos.local.ILocalSource
import com.sx.pipeline.repos.local.LocalSourceImpl

/**
 * @Author: YY
 * @Date: 2022/3/14
 * @Description: 注入数据仓库
 */
object Injection {

    fun provideRepository(): AppRepos {
        val localData: ILocalSource = LocalSourceImpl
        val httpData: IHttpSource = HttpSourceImpl
        return AppRepos(localData, httpData)
    }

}